package com.catree.normandy.service.impl;

import com.catree.normandy.bo.UserInfoBo;
import com.catree.normandy.dao.UserInfoDao;
import com.catree.normandy.service.UserInfoService;
import org.dozer.DozerBeanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by iHeadquarters on 2016/7/18.
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {

	@Autowired
	private UserInfoDao userInfoDao;

	@Override
	public UserInfoBo queryUserInfoById(Integer id) {
		return new DozerBeanMapper().map(userInfoDao.queryUserInfoById(id), UserInfoBo.class);
	}
}
